package LostFoundService

import (
    "server/app"
    "server/entity"
    "server/helper"
)

// 查询失物招领分页列表
func FindPageList(page *app.PageParam) *app.PageListResult {
    list := make([]entity.LostFound, 0)
    table := "LostFound"
    cols := "Id,Subject,Contents,HelpUser,HelpDept,Status,RowIndex, CreateTime,ModifyTime,IsVisable"
    condition := "where IsVisable=1"
    orderby := "order by RowIndex desc"
    pageList, err := helper.FindPageList(&list, page.PageIndex, page.PageSize, table, cols, condition, orderby)
    app.Panic(err)
    return pageList
}
